package priv.yiyuan.example.design.strategy;

import priv.yiyuan.example.design.strategy.drawing.DrawingStrategy;

/**
 * 形状抽象类
 * <p>
 * 抽象部分
 *
 * @author YiYuan
 * @data 2025/8/11
 * @apoNote
 */
public abstract class ShapeBridgeWithStrategy {

    protected ColorWithStrategy color;

    protected DrawingStrategy drawingStrategy;

    public ShapeBridgeWithStrategy(ColorWithStrategy color, DrawingStrategy drawingStrategy) {
        this.color = color;
        this.drawingStrategy = drawingStrategy;
    }

    public abstract void draw();
}
